package com.example.script.model;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

public class ChooseScript implements Serializable {
    private Long id;

    @ApiModelProperty(value = "选择剧本的玩家id")
    private Long userId;

    @ApiModelProperty(value = "选择的剧本id")
    private Long scriptId;

    @ApiModelProperty(value = "邀請碼")
    private String invitationCode;

    private Date createTime;

    @ApiModelProperty(value = "預約狀態,0為待確認,1為已接受,2為拒絕")
    private Long stateCode;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getScriptId() {
        return scriptId;
    }

    public void setScriptId(Long scriptId) {
        this.scriptId = scriptId;
    }

    public String getInvitationCode() {
        return invitationCode;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getStateCode() {
        return stateCode;
    }

    public void setStateCode(Long stateCode) {
        this.stateCode = stateCode;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", scriptId=").append(scriptId);
        sb.append(", invitationCode=").append(invitationCode);
        sb.append(", createTime=").append(createTime);
        sb.append(", stateCode=").append(stateCode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}